package com.example.myapplication.kotlin


//帮我写一个hallo world
const val baseURL = "https://www.baidu.com"
fun main() {
    println("你好 world")
    val a = 1
//    a=2 常量不能更改
    var b = "hello"
    b = "world"
    println(b + a)
    var duanwei: String = "大师"
    println(duanwei)
    //映射
    var num1 = arrayOf(1, 2, 3, 4, 5)
    var nums = num1.map { num: Int -> num * 2 }
    println(nums)
}

fun printplus(str: String) {
    println(str)
}

fun printplus1(str: String, str1: String) {
    println(str + str1)
}